﻿using System;
using System.Collections.Generic;
using System.Text;

namespace com.dz.ct.ui
{
    #region 消息处理

    /// <summary>
    /// 发送消息的委托
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void SendMsgEventHandler(object sender, SendMsgEventArgs e);

    /// <summary>
    /// 消息类型
    /// </summary>
    public enum MsgType
    {
        /// <summary>
        /// 汇总信息
        /// </summary>
        Total,
        /// <summary>
        /// 详细信息
        /// </summary>
        Detail
    }

    /// <summary>
    /// 发送消息时间参数类
    /// </summary>
    public class SendMsgEventArgs : EventArgs
    {
        private string m_msg;

        /// <summary>
        /// 消息信息
        /// </summary>
        public string Msg
        {
            get { return m_msg; }
            set { m_msg = value; }
        }

        private MsgType m_msg_type;
        public MsgType MsgType
        {
            get { return m_msg_type; }
            set { m_msg_type = value; }
        }
    }

    #endregion
}
